package com.aliang.shopping.service;

import com.aliang.shopping.common.PageResult;
import com.aliang.shopping.model.po.OrdersInfo;
import com.aliang.shopping.model.vo.cart.CartVO;
import com.aliang.shopping.model.vo.orders.OrdersVO;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
* @author ShiBaLover
* @description 针对表【orders_info(订单信息表)】的数据库操作Service
* @createDate 2025-01-04 22:07:32
*/
public interface OrdersInfoService extends IService<OrdersInfo> {
    PageResult<OrdersVO> getOrdersByBusinessId(Long businessId, Integer pageNum, Integer pageSize, Long ordersId, Integer status);

    Map<Long, Integer> getSaleNumByGoodsId(List<Long> goodsIds);

    CartVO getPayNoByItemId(Long ordersItemId);

    Boolean cancelOrdersByIdWithUserId(Long orderId, Long userId);
}
